Python 2.6.6安装pip

本文介绍了在Python 2.6.6环境下安装pip的详细过程,包括遇到的错误、解决方案及如何指定安装路径。特别提到,通过特定命令解决不支持SSL的问题,并成功安装了pip。
摘要由CSDN通过智能技术生成

根据pip官网说明,使用get-pip.py安装失败。

官网说明Note

The get-pip.py script is supported on the same python version as pip. For the now unsupported Python 2.6, alternate script is available here.

下载get-pip.py

curl https://bootstrap.pypa.io/2.6/get-pip.py -o get-pip.py

安装pip

注意:使用python2.6.6安装,因为我的环境中python指向的是2.6.6,所以直接使用下面命令进得安装。

python get-pip.py

报错如下

[root@javen-zhao pip2.6]# python get-pip.py 
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting pip<10
  Retrying 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值